@extends('home.base.user')
@section('content')
<div class="content container">

<div class="f_r personal_r">
    <div class="personal_r_t"></div>
    <div class="personal_r_m">
        <div class="personal_r_m_t coll_t">
            <h2>我的订单</h2>
        </div><!--personal_r_m_t end-->
        <div class="personal_r_m_m ">
            <div class="blank10"></div>

            <div class="blank20"></div>

            <div class="coll_m">
                <div class="coll_m_t"><h3>全部订单</h3></div>
                <table width="100%">
                    <thead>
                        <tr>
                            <th>订单编号</th><th>支付方式</th><th>金额</th><th>订单状态</th><th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        @if($num==0)
                        <tr>
                            <td colspan="6">暂时没有订单信息</td>
                        </tr>
                        @else
                        <span style="display:none;">{{$number=1}}</span>
                        @foreach($order as $v)
                        <tr $number%2==0?'bgcolor="#f7f7f7"':''>
                            <td><a href="#" class="blue">{{$v->id}}</a></td>
                            <td>支付宝</td>
                            <td><span class="red">￥{{$v->total}}元</span></td>
                            <td>
                                @if($v->state==1)已确认,未付款
                                @elseif($v->state==2)已付款,未发货
                                @elseif($v->state==3)已发货,未收货
                                @elseif($v->state==4)交易成功
                                @endif
                            </td>
                            <td><a href="{{url('/home1/order'.'/'.$v->id)}}" class="red">[查看]</a> |
                                @if($v->state==3)
                                <a href="{{url('/home1/shou'.'/'.$v->id)}}" class="yellow">[确认收货]</a>
                                @endif
                        </tr>
                        <span style="display:none;">{{$number++}}</span>
                        @endforeach
                        @endif
                    </tbody>
                </table>
            </div><!--coll_m end-->
        </div><!--comment end-->
    </div><!--personal_r_m end-->
    <div class="personal_r_b"></div>
</div><!--personal_r end-->

<div class="clear mb-10"></div>

</div>
@stop
